﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lib.Utility;
using Module.BusinessLogic;
using Module.EntitiesInfo;

namespace Web
{
    public partial class tinchitiet : System.Web.UI.Page
    {
       
        protected string Headline;

        protected string Body;
        protected string CreatedOn;



        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int contentID;
                contentID = Request.QueryString["Id"]== null ? 0 : ConvertUtility.ToInt32(Request.QueryString["Id"]);
                if (!IsPostBack)
                {
                    CMSContentsInfo info = CMSContentsBL.SelectInfoOutsite(2, contentID.ToString(), "");
                    if (info != null)
                    {
                        Headline = info.Headline;
                        Body = info.Body;
                        CreatedOn = Convert.ToDateTime(info.CreatedOn).ToString();
                    }
                }
            }
            catch (Exception)
            {               
            }
        }

        protected void btnClose_Click1(object sender, ImageClickEventArgs e)
        {
            HttpContext.Current.Response.Write("<script>window.top.hidePopWinUSER(false);</script>");
        }
    }
}